﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RAD
{
   public class BogieInformation
   {




       public static int RandomNumber(int min, int max)
       {

           Random random = new Random((int)DateTime.Now.Ticks);
           return random.Next(min, max);

       }




       public static bool NumberRangeValidator(int min, int max, string strNumberToCheck)
       {




           try
           {




               int numberEntered = int.Parse(strNumberToCheck);




               if (numberEntered < min || numberEntered > max)




                   return true;

           }




           catch (FormatException)
           {




               return true;

           }




           return false;

       }



   }

}